var i = 0;
var lk = document.getElementsByTagName('a');
var title = "";
var href = "";
while( i < lk.length ) {
	title = lk[i].text == ""? lk[i].text.trim(): lk[i].text;
	href = lk[i].href;
	if(title != "")
		console.log(title,": ",href);
	i++;
}